<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/include/page.jsp" %>
<c:set value="${requestScope.headerResponse.data.list }" var="list" />
<jsp:useBean class="com.sys.goods.pojo.AGoods" id="pojo"/>
<div id="header">
	<div class="container">
		<div id="welcomeLine" class="row">
			<div class="span6">
				欢迎你!<strong> ${sessionScope.users.nickName }</strong>
			</div>
			<div class="span6">
				<div class="pull-right">
					<!-- <a href="product_summary.html"><span class="">Fr</span></a>
					<a href="product_summar.y.html"><span class="">Es</span></a>
					<span class="btn btn-mini">En</span> 
					<a href="product_summary.html"><span>&pound;</span></a>
					<span class="btn btn-mini">$155.00</span>
					<a href="product_summary.html">
						<span class="">$</span>
					</a> -->
					<a href="${rootPath }/head/users/cartList">
						<span class="btn btn-mini btn-primary">
							<i class="icon-shopping-cart icon-white"></i> 
							<!-- [ 3 ] 件商品在你的购物车里  -->
							购物车
						</span>
					</a>
				</div>
			</div>
		</div>
		<!-- Navbar ================================================== -->
		<div id="logoArea" class="navbar">
			<a id="smallScreen" data-target="#topMenu" data-toggle="collapse"
				class="btn btn-navbar">
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
				<span class="icon-bar"></span>
			</a>
			<div class="navbar-inner">
				<a class="brand" href="${rootPath }/main">
					<img src="${rootPath}/img/logo.png" alt="Bootsshop" />
				</a>
				<!-- 分类搜索 -->
				<form class="form-inline navbar-search" method="post" action="${rootPath }/goodsList">
					<input class="srchTxt" name="keyword" type="text" value="${requestScope.keyword }"/>
					<select name="cateId" class="srchTxt">
						<option value="">请选择</option>
						<c:forEach items="${list }" var="listTemp" varStatus="stat">
							<option value="${listTemp.id }" ${requestScope.cateId == listTemp.id ? 'selected' : '' }>${listTemp.name }</option>
						</c:forEach>
					</select>
					<button type="submit" id="submitButton" class="btn btn-primary">Go</button>
				</form>
				<ul id="topMenu" class="nav pull-right">
					<li class=""><a href="${rootPath }/goodsList">全部商品</a></li>
					<li class=""><a href="${rootPath }/goodsList?dataType=${pojo.enums.DATATYPE_SPECIAL}">特价商品</a></li>
					<!-- <li class=""><a href="contact.html">Contact</a></li> -->
					<c:choose>
						<c:when test="${sessionScope.users != null }">
							<li class=""><a href="${rootPath }/head/users/main"><span class="btn btn-large btn-success">个人中心</span></a></li>
						</c:when>
						<c:otherwise>
							<li class=""><a href="${rootPath }/login"><span class="btn btn-large btn-success">登陆</span></a></li>
						</c:otherwise>
					</c:choose>
					<!-- <li class="">
						<a href="#login" role="button" data-toggle="modal" style="padding-right: 0">
							<span class="btn btn-large btn-success">登陆</span>
						</a>
						<div id="login" class="modal hide fade in" tabindex="-1"
							role="dialog" aria-labelledby="login" aria-hidden="false">
							<div class="modal-header">
								<button type="button" class="close" data-dismiss="modal"
									aria-hidden="true">×</button>
								<h3>Login Block</h3>
							</div>
							<div class="modal-body">
								<form class="form-horizontal loginFrm">
									<div class="control-group">
										<input type="text" id="inputEmail" placeholder="Email">
									</div>
									<div class="control-group">
										<input type="password" id="inputPassword"
											placeholder="Password">
									</div>
									<div class="control-group">
										<label class="checkbox"> <input type="checkbox">
											Remember me
										</label>
									</div>
								</form>
								<button type="submit" class="btn btn-success">Sign in</button>
								<button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
							</div>
						</div>
					</li> -->
				</ul>
			</div>
		</div>
	</div>
</div>
<!-- Header End====================================================================== -->
